package pierwszy.wordPressPageObjects.wordPressTcs;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.Test;

import pierwszy.wordPressPageObjects.AdminLoginPage;
import pierwszy.wordPressPageObjects.AllPostsPage;

public class TestDeleteAPostUsingPageObjects {
	@Test
	public void deletePost(){
		WebDriver driver = new FirefoxDriver();
		AdminLoginPage adminLoginPage = new AdminLoginPage(driver).get();
		AllPostsPage allPostsPage = adminLoginPage.login();
		allPostsPage.deleteAPost("Create New Post Using PageObjects");
	}
}
